<template>
  <el-form size="mini" label-position='left' label-width="120px">
    <el-form-item label="基本数据">
      <el-tag type="success">分组名称:{{ form.group_name }}</el-tag>
      <el-tag type="success">接口名称:{{ form.api_name }}</el-tag>
    </el-form-item>
    <el-form-item :label="index" v-for="(arg, index) in form.body" :key="arg.index">
      <el-input :placeholder="arg" v-model="form.body[index]"></el-input>
    </el-form-item>
    <el-form-item label="任务定时">
      <el-input v-model="form['cron']" style="width: 300px"></el-input>
    </el-form-item>
    <el-form-item label="任务描述">
      <el-input v-model="form.description"></el-input>
    </el-form-item>
  </el-form>
  <!--  <el-card>-->
  <!--    <json-viewer :value=form :expand-depth=3 copyable></json-viewer>-->
  <!--  </el-card>-->
</template>

<script>
import JsonViewer from "vue-json-viewer";

export default {
  components: {
    JsonViewer
  },
  name: "tasker",
  props: {
    form: {}
  },
  data() {
    return {}
  }
}
</script>

<style scoped>

</style>